// app/projects/[projectId]/layout.tsx
import { ProjectNav } from '@/components/project/ProjectNav';

export default async function ProjectLayout({
  children,
  params,
}: {
  children: React.ReactNode;
  params: Promise<{ projectId: string }>;
}) {
  const resolvedParams = await params;

  return (
    <div className="flex flex-col h-full">
      <ProjectNav projectId={resolvedParams.projectId} />
      <div className="flex-1 overflow-y-auto">
        {children}
      </div>
    </div>
  );
}
